#ifndef _H_CONFIGS_
#define _H_CONFIGS_
#include "define.h"
#include "App.h"
#define CONFIG_PARAM_NUM 8
#define CONFIG_PARAM_OFFSET_MODE 0
#define CONFIG_PARAM_OFFSET_TEMP 1
#define CONFIG_PARAM_OFFSET_HUM 2
#define CONFIG_PARAM_OFFSET_GZ  3
#define CONFIG_PARAM_OFFSET_PRE 4
#define CONFIG_PARAM_OFFSET_M2 5
#define CONFIG_PARAM_OFFSET_M7 6
#define CONFIG_PARAM_OFFSET_M135 7

#define CONFIG_MODE_LOCAL 0
#define CONFIG_MODE_REMOTE 1
typedef struct{
	
	U16 addvalue;
	U16 decvalue;
	U16 maxvalue;
	U16 minvalue;
	U8 displayrow;
	U16 defaultvalue;
}STRConfigDefType;
typedef struct{
	U8 configitem;
	U16 configvalue[CONFIG_PARAM_NUM];
	U8 changeflag;
	U8 backconfigitem;
	U8 displaytype;
	STRAppAttrType *displaydata;
}STRConfigRegType;
extern STRConfigRegType g_config_stRegs;
extern void fnConfigs_Init(void);
extern void fnConfigs_RealTime(void);
extern U8 fnConfigs_InConfig(void);
extern void fnConfigs_ConfigDisplayData(STRAppAttrType *displaydata);
#endif
